package domain.weapon;

import images.Images;

import com.uqbar.vainilla.appearances.Appearance;
import com.uqbar.vainilla.sound.Sound;
import com.uqbar.vainilla.sound.SoundBuilder;

import domain.scenes.MainGameScene;

public class Gun extends Weapon {

	@Override
	public void shoot(int dir, double angle, double power, MainGameScene scene) {
		//crear explosion q la manda como parametro al proyectil
		//Explosion explosion = new Explosion(30, 60, 60, 0, 0);
		
		//crea el proyectil
		GunProjectile pr = new GunProjectile(dir, this.getSight().getX(), this.getSight().getY(),angle);
	
		//tomo la escena y le mando la bala para agregarla
		scene.addComponent(pr);
	}
	
	public double getLimitPowerWeapon(){
		return 0;
	}

	@Override
	public Appearance getAppWeaponLeft() {
		return Images.getLinealAnimation("gunLeft", 0.07);
	}

	@Override
	public Appearance getAppWeaponRight() {
		return Images.getLinealAnimation("gunRight", 0.07);
	}

	@Override
	public String getKeyPathSoundReload() {
		return "reloadGun";
	}

	public String getKeyPathSoundFire() {
		return "fireGun";
	}



}
